/*******************************************************************************
 *
 * DSM - Distributed Search Manager
 * Developed by Milspec Research International Pty Ltd
 *
 * $Author: gsingh $
 * $Revision: 1.7 $
 * $Date: 2006/04/18 07:04:48 $
 *
 * (c)Copyright 2004
 *    education.au limited
 *    DEST
 *    All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * Neither the names education.au limited, DEST nor the names of its
 * contributors may be used to endorse or promote products derived from this
 * software without specific prior written permission.
 *
 * To the extent permitted by law, the copyright owners of this software and
 * its contributors:
 *
 *  (i) exclude all warranties in relation to the software; and
 * (ii) exclude liability for all losses, costs, expenses and damages arising
 *      in any way from the use of the software whether arising from or in
 *      relation to breach of contract, negligence or any other tort, in equity
 *      or otherwise. If the software is in breach of a warranty which is
 *      implied by law, the copyright owners and contributors liability is
 *      limited to the replacement of the software.
 *
 *******************************************************************************
 */

package au.edu.educationau.opensource.dsm.obj;

/**
 * Search Manager Constants file - self explanatory
 * 
 */

public final class SMEvents implements java.io.Serializable {

	// Adapter Status
	public static final short SEARCH_ADAPTER_STATUS_IDLE = 10;
	public static final short SEARCH_ADAPTER_STATUS_BUILDING_QUERY = 11;
	public static final short SEARCH_ADAPTER_STATUS_BUILDING_QUERY_OK = 12;
	public static final short SEARCH_ADAPTER_STATUS_GETTING_RESULTS = 13;
	public static final short SEARCH_ADAPTER_STATUS_GETTING_RESULTS_OK = 33;
	public static final short SEARCH_ADAPTER_STATUS_NEXT_BATCH_LOGIC = 15;
	public static final short SEARCH_ADAPTER_STATUS_NICE_STOPPING = 33;
	public static final short SEARCH_ADAPTER_STATUS_FORCE_STOPPING = 44;
	public static final short SEARCH_ADAPTER_STATUS_SUCCESSFUL = 200; // changed
																		// from
																		// 55 to
																		// 200
																		// to
																		// utilise
																		// a
																		// HTTP
																		// response
																		// code
	public static final short SEARCH_ADAPTER_STATUS_FAILED = 500; // changed
																	// from 66
																	// to 500 to
																	// utilise a
																	// HTTP
																	// response
																	// code
	public static final short SEARCH_ADAPTER_STATUS_TIMEOUT = 504;

	// Search Strategies
	public static final String SEARCH_STRATEGY_WAIT_FOR_ALL = "waitall";
	public static final String SEARCH_STRATEGY_WAIT_FOR_FASTEST = "waitfast";
	public static final String SEARCH_STRATEGY_WAIT_FOR_ADAPTER = "waitadapter";
	public static final String SEARCH_STRATEGY_WAIT_FOR_NONE = "waitpoll";
	public static final String SEARCH_STRATEGY_WAIT_N_SECONDS = "wait[0-9]{1,2}";

	// Search Actions
	public static final String SEARCH_ACTION_NEW = "new";
	public static final String SEARCH_ACTION_SHOW_TOP_10 = "showtop";
	public static final String SEARCH_ACTION_STOP_ALL = "stopall";
	public static final String SEARCH_ACTION_REFRESH = "status";

	// Z39.50 Schemas
	public static final String Z3950_BIB_1 = "http://www.loc.gov/mods/";
	public static final String Z3950_GRS_1 = "http://www.gils.net/xml-grs.xsd";
	public static final String Z3950_MARC_21 = "http://www.openarchives.org/OAI/oai_marc";

	// Transform legend
	public static final String TRANSFORM_HOST = "host";
	public static final String TRANSFORM_CLIENT = "client";

}

// -- EOF
